<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 400px;
            height: 280px;
            background-color: aqua;
        }
    </style>
</head>
<body>
    <div></div>
    <script>
        // 1.获取元素
        var div = document.querySelector('div')
        // 2.注册事件
        div.onclick = function () { 
            // this 就是指div标签
            var s = window.getComputedStyle.toString
            console.log(s);
            
         }
    </script>
</body>
</html>